home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML Instance.sea / XML Instance / Required / plugins / HTMLWindow.jar / horst / ParagraphView.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-03-18  |  1.1 KB  |  26 lines

  1. package horst;
  2.  
  3. public class ParagraphView extends BlockView {
  4.    public ParagraphView(View parent, Element e, HTMLPane container) {
  5.       super(parent, e, container);
  6.    }
  7.  
  8.    protected boolean alignInBounds() {
  9.       return super.m_alignment == 0;
  10.    }
  11.  
  12.    protected void init() {
  13.       ((View)this).setInsets(5, 0, 5, 0);
  14.       if (super.m_parent != null && super.m_parent instanceof CenterView) {
  15.          super.m_alignment = 1;
  16.       } else {
  17.          super.m_alignment = Utilities.setAlignmentProperty(false, 0, "align", super.m_elem.getAttributes());
  18.       }
  19.  
  20.    }
  21.  
  22.    protected boolean isWrappable() {
  23.       return true;
  24.    }
  25. }
  26.